#include <bits/stdc++.h>
using namespace std;
int main ()
{
    priority_queue<string> mypq;
    mypq.emplace("orange");
    mypq.emplace("strawberry");
    mypq.emplace("apple");
    mypq.emplace("pear");
 
    cout << "mypq contains:";
    while (!mypq.empty()) {
        std::cout << ' ' << mypq.top();
        mypq.pop();
     }
   cout << '\n';
   return 0;
 }
